﻿<html>
<head>
	<title>管理</title>
</head>
<body topmargin=0>
  <?php
  include ("../conn.php");
  $sqlmima="select * from admin";
  $querymima=mysqli_query($con,$sqlmima);
  $rowmima=mysqli_fetch_array($querymima,MYSQLI_ASSOC);
  
  if($_GET['name']==$rowmima['usename']&&$_GET['pwd']==$rowmima['pwd'])
  {
  ?>
	<table border=1 width=700px height=650px align=center>
		<tr height=100><td colspan=2 ><a href=a.php?name=<?php echo $rowmima['usename']?>&&pwd=<?php echo $rowmima['pwd']?>>后台管理</a> <a href=a.php>退出</a></td></tr>
		<tr>
			<td width=23% align=center valign=top>
				<a href=editdh.php target=in>网站导航</a><br />
				<a href=addnews.php target=in>添加新闻</a><br />
				<a href=editnews.php target=in>管理新闻</a><br />
				<a href=addpro.php target=in>添加产品</a><br />
				<a href=editpro.php target=in>管理产品</a><br />
				<a href=liuyan.php target=in>查看留言</a><br />
				<a href=links.php target=in>友情链接</a><br />
			</td>
			<td valign=top><iframe width=100% height=100% name=in src=config.php><iframe></td>
		</tr>
		
	</table>
	<?php
	}
	else
	{
		echo "<script>window.location.href='login.php';</script>";
	}
	?>
</body>
</html>